We currently handle the case where the indicator itself is disabled
(read: hidden), but not when the entire top bar is invisible (for
instance when the primary monitor is in fullscreen state).
It is odd to pop up a top bar menu without the top bar, so check for
the indicator's mapped- instead of visible state.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/2002
}
_toggleMenu(indicator) {
- if (!indicator || !indicator.container.visible)
+ if (!indicator || !indicator.mapped)
return; // menu not supported by current session mode
let menu = indicator.menu;